package hello

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * Created by hunter on 17-11-12.
 */
@RestController
@SpringBootApplication
class BookApplication {
    @RequestMapping(value = "/available")
    String available() {
        "Spring in Action"
    }

    @RequestMapping(value = "/checked-out")
    String checkOUt() {
        "Spring boot in action"
    }


    static main(args){
        SpringApplication.run(BookApplication.class,args)
    }
}
